import { FetchBudgetExhibitDataURL, UpdateTotalAmountURL } from "../../RequestURL";

export const FetchBudgetExhibitData = async () =>
{
    let res = await fetch(FetchBudgetExhibitDataURL);
    return await res.json();
};

export const UpdateTotalAmountApi = async (amount: string) =>
{
    let res = await fetch(UpdateTotalAmountURL, {
        method: "PATCH",
        headers: {
            'content-type': 'application/json;charset=utf-8'
        },
        body: JSON.stringify({ amount })
    });
    return await res.json();
};
